package com.yonyou.cyxdms.basedata.service.dto.vehiclemodel;

import com.yonyou.cyx.framework.bean.dto.base.BaseDTO;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;

/**
 * 车系Dto
 *
 * @author chenzb
 * @date 2019年10月12日
 */

public class GeneralSeriesDTO extends BaseDTO {

    // 车系id
    private Integer seriesId;

    // 品牌code
    @NotNull(message = "品牌代码不能为空")
    private String brandCode;

    // 是否进口车
    private Integer isImport;

    // 经销商代码
    @NotBlank(message = "经销商代码不能为空")
    private String  ownerCode;

    @NotBlank
    private String seriesCode;

    @NotBlank
    private String seriesName;

    @NotBlank
    private String appId;

    // 数据来源
    private String sourceId;

    // 是否有效
    private Integer isValid;

    // 是否删除
    private Integer isDelete;

    public Integer getSeriesId() {
        return seriesId;
    }

    public void setSeriesId(Integer seriesId) {
        this.seriesId = seriesId;
    }

    public String getBrandCode() {
        return brandCode;
    }

    public void setBrandCode(String brandCode) {
        this.brandCode = brandCode;
    }

    public Integer getIsImport() {
        return isImport;
    }

    public void setIsImport(Integer isImport) {
        this.isImport = isImport;
    }

    public String getSeriesCode() {
        return seriesCode;
    }

    public void setSeriesCode(String seriesCode) {
        this.seriesCode = seriesCode;
    }

    public String getSeriesName() {
        return seriesName;
    }

    public void setSeriesName(String seriesName) {
        this.seriesName = seriesName;
    }

    public Integer getIsValid() {
        return isValid;
    }

    public void setIsValid(Integer isValid) {
        this.isValid = isValid;
    }

    public String getOwnerCode() {
        return ownerCode;
    }

    public void setOwnerCode(String ownerCode) {
        this.ownerCode = ownerCode;
    }

    public String getAppId() {
        return appId;
    }

    public void setAppId(String appId) {
        this.appId = appId;
    }

    public String getSourceId() {
        return sourceId;
    }

    public void setSourceId(String sourceId) {
        this.sourceId = sourceId;
    }

    public Integer getIsDelete() {
        return isDelete;
    }

    public void setIsDelete(Integer isDelete) {
        this.isDelete = isDelete;
    }

    @Override
    public String toString() {
        return "GeneralSeriesDTO{" +
                "seriesId=" + seriesId +
                ", brandCode=" + brandCode +
                ", isImport=" + isImport +
                ", ownerCode='" + ownerCode + '\'' +
                ", seriesCode='" + seriesCode + '\'' +
                ", seriesName='" + seriesName + '\'' +
                ", appId='" + appId + '\'' +
                ", sourceId=" + sourceId +
                ", isValid=" + isValid +
                ", isDelete=" + isDelete +
                '}';
    }
}
